CUW\App\Helpers\WC D

Total Complexity 341
Dependencies 9
Dependents 28
Total lines 1,281
Lines of code 669
Logical lines of code 398
Comment lines 460
Methods 73
Properties 0

Methods 73

Method Rating Maintainability Complexity Lines of code
is()
C
47 28 28
isPurchasableProduct()
A
47 16 31
getTaxonomyName()
A
50 16 28
addToOrder()
A
51 12 24
formatPriceRaw()
A
53 10 19
getProductTitle()
A
56 9 16
getCustomerBillingEmail()
A
58 9 13
getPageUrl()
A
59 9 13
replaceCartItem()
A
51 8 25
getCurrentEndpoint()
S
58 8 14
getDefaultVariationId()
S
54 7 21
maybeLoadSession()
S
66 7 7
getCartSubtotal()
S
62 7 10
getPriceToDisplay()
S
62 6 10
getOrderStatuses()
S
60 5 12
applyCartCoupon()
S
63 5 10
setCartItemRegularPrice()
S
64 5 9
getProduct()
S
66 5 8
removeCartCoupon()
S
63 5 10
getOrder()
S
66 5 8
isVariationVisible()
S
64 5 9
setCartItemPrice()
S
64 5 9
isVariationActive()
S
64 5 9
getPage()
S
64 4 9
isProductVisible()
S
64 4 9
setSession()
S
67 4 7
getOrderItems()
S
64 4 10
getSession()
S
69 4 6
getFormattedVariationInfo()
S
63 4 9
removeCartItem()
S
67 3 7
getProductImage()
S
67 3 7
getProductTagIds()
S
67 3 7
getProductAttributes()
S
67 3 7
getVariationAttributes()
S
67 3 7
getVariationIdByAttributes()
S
67 3 7
getVersion()
S
77 3 3
cartBlockEnabled()
S
73 3 4
isStoreApi()
S
77 3 3
checkoutBlockEnabled()
S
73 3 4
getProductStockQty()
S
67 3 7
formatPriceHtmlRaw()
S
69 3 6
isBackordersAllowedProduct()
S
67 3 7
declareFeatureCompatibility()
S
66 3 8
customOrdersTableIsEnabled()
S
66 3 8
addToCart()
S
67 3 7
getProductSku()
S
67 3 7
isVariableProduct()
S
67 3 8
getCart()
S
70 3 6
setCartItemQty()
S
67 3 7
getAppliedCouponsInCart()
S
68 3 7
getCartItem()
S
67 3 7
getCartItems()
S
68 3 7
getOrderIdByKey()
S
68 3 7
getParentOrder()
S
67 3 7
isProductType()
S
67 3 7
getAppliedCouponsInOrder()
S
67 3 7
get()
S
67 3 8
getProductParentId()
S
67 3 7
getProductType()
S
67 3 7
getProductCategoryIds()
S
67 3 7
getProductChildrenIds()
S
67 3 7
requiredVersion()
S
77 2 3
isCouponExists()
S
67 2 7
getDisplayTaxSettingByPage()
S
77 2 3
getCurrencySymbol()
S
71 2 6
addNotice()
S
68 2 7
getCurrency()
S
71 2 6
formatPriceRange()
S
69 2 6
formatSalePrice()
S
69 2 6
printNotice()
S
72 2 5
getNotice()
S
70 2 6
formatPrice()
S
70 2 6
displayPricesIncludingTax()
S
76 2 3